import request from '@/utils/request'
import type { UserInfo } from './type'
//登录
export const getLoginAPI = (data: UserInfo) => {
  return request.post<any, any>('/codeDuckUser/login', data)
}
//用户信息
export const getUserInfoAPI = () => {
  return request.post<any, any>('/codeDuckUser/getByToken')
}
